package com.senmo.video.jni;

/**
 * author: lx
 * date: 16-1-6
 */
public class JNI {

    public static native boolean init(String phone, String version);

    public static native void dinit();

    public static native int getConnectResult(int handle);

    public static native int connect(String url);

    public static native void disconnect(int handle);

    public static native void yuv2rgb(
            byte[] yuvData, int yLen, int uLen, int vLen,
            int[] rgbData, int width,int height,
            int uYStride, int uUVStride);

    public static native FrameData getMediaData(FrameData data);

    public static FrameData getMediaData(int handle, int buffer_size) {
        return getMediaData(new FrameData(handle, buffer_size));
    }

}
